package com.corpdata.app.contract.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.corpdata.app.contract.entity.ContractReceivable;
import com.corpdata.common.result.Result;
import com.corpdata.core.base.BaseService;

/**
 * 合同应收
 * @author wu
 * @email 64088839@qq.com
 * @date 2018-07-04 11:12:41
 * 
 */
public interface ContractReceivableService extends BaseService<ContractReceivable>{
	Result insert(ContractReceivable record,String contractInfoId,String rent,int interest) throws Exception;
	
	Result deleteAllById(String id);
	
	Result delContractBill(String contractId);
	//收款
	Result shoukuanById(String id);
	//将原合同押金退款
	int returnYajin(String renewid);
	//获取列表
	List<ContractReceivable> selectAll(int billType,Date date,String state,String teamId,String contractId,String type,String startdate,String enddate,String yuqi);
	//生成账单
	void generatingBill();
	//发送账单通知
	Result sendBillMessage();
	//发送催款通知
	Result sendPromptMessage();
	//删除临时数据
	void delTemporaryReceive();
}
